package com.eflow.engine.listener;

import com.eflow.model.event.AbstractTaskEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * @CLASSNAME EflowTaskListener
 * @Description eflow任务处理监听器
 * @Auther JanHezz
 * @BLOG www.luckyhe.com
 * @DATE 2021/3/10 16:04
 */
public class EflowTaskListener implements ApplicationListener<AbstractTaskEvent> {
    @Override
    public void onApplicationEvent(AbstractTaskEvent event) {
        event.execute();
    }
}
